package cn.huiyunche.base.service.enums;

public enum OrderRecommendStatusEnum {
    RECOMMENDED(10, "推荐"),
    QUOTED(20, "报价"),
    FAIL(30, "失效");

    private final int value;
    private final String text;

    OrderRecommendStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static OrderRecommendStatusEnum getByValue(int value) {
        for (OrderRecommendStatusEnum temp : OrderRecommendStatusEnum.values()) {
            if (value == temp.getValue()) {
                return temp;
            }
        }
        return null;
    }
}
